package combotest;

import javax.swing.JComboBox;

public class ComboTest {
	public static void main(String[] a){
		String[] a1 = { "x" , "x" };
		JComboBox box1 = new JComboBox( a1 );
		
		box1.setSelectedIndex( 1 );
		
		System.out.println(" The item chosen was " + box1.getSelectedIndex() + " " + box1.getSelectedItem());
	}
}
